Fix another missing static.
authorOwen Taylor <otaylor@redhat.com>
Thu, 31 Jan 2002 16:37:27 +0000 (16:37 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 31 Jan 2002 16:37:27 +0000 (16:37 +0000)
Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix
        another missing static.

        * gtk/gtkimmodule.c (n_loaded_contexts): And another.

        * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
        build gxid sources at all except in the vanishingly
        rare case of --with-xinput=xfree.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/Makefile.am
gdk/x11/gdkproperty-x11.c
gdk/x11/gxid_lib.c
gtk/gtkimmodule.c

index f640ae1bac9336a5fa93a2981ceda482de61a5ee..089dd01ec476d8abda59da95df3bd1e03542f7e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
+       another missing static.
+
+       * gtk/gtkimmodule.c (n_loaded_contexts): And another.
+
+       * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
+       build gxid sources at all except in the vanishingly
+       rare case of --with-xinput=xfree.
+
 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
 
        * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
index f640ae1bac9336a5fa93a2981ceda482de61a5ee..089dd01ec476d8abda59da95df3bd1e03542f7e1 100644 (file)
@@ -1,3 +1,14 @@
+Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
+       another missing static.
+
+       * gtk/gtkimmodule.c (n_loaded_contexts): And another.
+
+       * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
+       build gxid sources at all except in the vanishingly
+       rare case of --with-xinput=xfree.
+
 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
 
        * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
index f640ae1bac9336a5fa93a2981ceda482de61a5ee..089dd01ec476d8abda59da95df3bd1e03542f7e1 100644 (file)
@@ -1,3 +1,14 @@
+Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
+       another missing static.
+
+       * gtk/gtkimmodule.c (n_loaded_contexts): And another.
+
+       * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
+       build gxid sources at all except in the vanishingly
+       rare case of --with-xinput=xfree.
+
 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
 
        * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
index f640ae1bac9336a5fa93a2981ceda482de61a5ee..089dd01ec476d8abda59da95df3bd1e03542f7e1 100644 (file)
@@ -1,3 +1,14 @@
+Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
+       another missing static.
+
+       * gtk/gtkimmodule.c (n_loaded_contexts): And another.
+
+       * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
+       build gxid sources at all except in the vanishingly
+       rare case of --with-xinput=xfree.
+
 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
 
        * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
index f640ae1bac9336a5fa93a2981ceda482de61a5ee..089dd01ec476d8abda59da95df3bd1e03542f7e1 100644 (file)
@@ -1,3 +1,14 @@
+Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
+       another missing static.
+
+       * gtk/gtkimmodule.c (n_loaded_contexts): And another.
+
+       * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
+       build gxid sources at all except in the vanishingly
+       rare case of --with-xinput=xfree.
+
 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
 
        * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
index f640ae1bac9336a5fa93a2981ceda482de61a5ee..089dd01ec476d8abda59da95df3bd1e03542f7e1 100644 (file)
@@ -1,3 +1,14 @@
+Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
+       another missing static.
+
+       * gtk/gtkimmodule.c (n_loaded_contexts): And another.
+
+       * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
+       build gxid sources at all except in the vanishingly
+       rare case of --with-xinput=xfree.
+
 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
 
        * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
index f640ae1bac9336a5fa93a2981ceda482de61a5ee..089dd01ec476d8abda59da95df3bd1e03542f7e1 100644 (file)
@@ -1,3 +1,14 @@
+Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
+       another missing static.
+
+       * gtk/gtkimmodule.c (n_loaded_contexts): And another.
+
+       * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
+       build gxid sources at all except in the vanishingly
+       rare case of --with-xinput=xfree.
+
 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
 
        * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
index 1d8d57dd86e735a5dfdf217dae47232e7c95170d..5392c5017ab6e904ec387288f9cc860818423c9d 100644 (file)
@@ -22,6 +22,10 @@ if XINPUT_GXI
 xinput_sources =          \
        gdkinput-x11.c     \
        gdkinput-gxi.c
+gxid_sources =                  \
+       gxid_lib.c              \
+       gxid_lib.h              \
+       gxid_proto.h
 else
 if XINPUT_XFREE
 xinput_sources =          \
@@ -59,12 +63,10 @@ libgdk_x11_la_SOURCES =     \
        gdkwindow-x11.c         \
        gdkwindow-x11.h         \
        gdkxid.c                \
-       gxid_lib.c              \
-       gxid_lib.h              \
-       gxid_proto.h            \
        gdkx.h                  \
        gdkprivate-x11.h        \
        gdkinputprivate.h       \
+       $(gxid_sources)         \
        xsettings-client.h      \
        xsettings-client.c      \
        xsettings-common.h      \
index 320f9faf8de46abcf8bc0b294987f2e6a72cd011..8c9555a1a869cc75ed98f9d0d695694c03e41e6f 100644 (file)
@@ -119,7 +119,7 @@ static gchar *XAtomsStrings[] = {
 #define ATOM_TO_INDEX(atom) (GPOINTER_TO_UINT(atom))
 #define INDEX_TO_ATOM(atom) ((GdkAtom)GUINT_TO_POINTER(atom))
 
-void
+static void
 insert_atom_pair (GdkAtom     virtual_atom,
                  Atom        xatom)
 {
index 8394b0d77c38e85a11e000d9f460da41c78e33c9..ca07c835ef87d08f100a167573bb5067f9859c98 100644 (file)
@@ -7,8 +7,6 @@
 #include "config.h"
 #include "gxid_lib.h"
 
-#ifdef XINPUT_GXI
-
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/time.h>
@@ -110,16 +108,3 @@ _gxid_release_device(char *host, int port, GxidU32 device, GxidU32 window)
 
   return gxid_send_message(host,port,(GxidMessage *)&msg);
 }
-
-#else /* !XINPUT_GXI */
-
-/* Some compilers don't like empty source files */
-int 
-_gxid_claim_device(char *host, int port, GxidU32 device, GxidU32 window,
-                  int exclusive)
-{
-  return 0;
-}
-
-#endif /* XINPUT_GXI */
-
index 85f1c927ca127bab175b52d9adadb8258ff7b2cb..ff571c75bc1f69552da886c957925a07595b4422 100644 (file)
@@ -76,7 +76,7 @@ struct _GtkIMModuleClass
 
 GType gtk_im_module_get_type (void);
 
-gint n_loaded_contexts = 0;
+static gint n_loaded_contexts = 0;
 static GHashTable *contexts_hash = NULL;
 static GSList *modules_list = NULL;